import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import Carousel from '@feidao/widgets/fd-wh000000'

export default async function a002(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	console.log('=================');
	const carousel = fd.data.node.querySelector<Carousel>('#fd-wh000000-001');
	// debugger
	carousel.setAttribute('value', JSON.stringify([{ "imgsrc": "images/320x160-1.jpg", "imgtitle": "1", "imghref": "www.baidu.com" },
	{ "imgsrc": "images/320x160-2.jpg", "imgtitle": "2", "imghref": "www.baidu.com" }
	]));
}
